home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / remote / rur_251.zip / RUR.DOC < prev    next >
Text File  |  1991-09-08  |  14KB  |  328 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                              R U R  v 2.51
  11.  
  12.  
  13.                       The RemoteAccess Users Ratio System
  14.  
  15.                                 by Ron Huiskes
  16.  
  17.                        Copyright (C) InterSoft 1990-1991
  18.                               All Rights Reserved
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. ╓─────────────────────────────────────────────────────────────────────────────╖
  26. ║ ░░░░░░░ What exactly is RUR ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
  27. ╙─────────────────────────────────────────────────────────────────────────────╜
  28.  
  29.  
  30.   Ever been irritated that some users only downloaded, and downloaded and..?
  31.  
  32.   Well, Here is RUR...
  33.  
  34.   RUR is a complete Up/Download Ratio System. It will take full control over
  35.   your users and their ratio. It will downgrade a users level if their ratio 
  36.   is too high,  and it will upgrade their level if they uploaded enough, and
  37.   their ratio is okay again...
  38.  
  39.   Until here there is nothing special, you would say....  There are a lot of
  40.   utilities that do it this way, but RUR goes futher...
  41.  
  42.   When RUR downgrades a users level,  it sends  a message to the person tel-
  43.   ling him so, using the RA message base, specifying exactly how much he has
  44.   to upload to be reased back...  (e.g when upgrading RUR sends a thanks for
  45.   uploading message)
  46.  
  47.   And, if a users level gets downgraded and the user logs on, and he decides
  48.   to upload some files  to get his ratio back up,  he doesn't  have to  wait
  49.   until the next event,  where RUR will upgrade him. No, He simple pops into
  50.   a little door  ( supplied with RUR ) and that door will online upgrade his
  51.   level... (if his ratio is okay after the upload offcourse)
  52.  
  53.   Also,  RUR  will make a  complete loglist  of all the changes made in your  
  54.   users.bbs, so you can control everything RUR does...  
  55.  
  56.   And, users can see completely HOW their ratio is been calculated. They en-
  57.   ter the RUR_DOOR and get the complete picture...
  58.  
  59.  
  60. ╓─────────────────────────────────────────────────────────────────────────────╖
  61. ║ ░░░░░░░ Features of RUR ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
  62. ╙─────────────────────────────────────────────────────────────────────────────╜
  63.  
  64.  
  65.   ■ Specially written for the RemoteAccess BBS v1.0.
  66.  
  67.   ■ Easy to setup.
  68.  
  69.   ■ Easy implementation in RA, using SECxxx.A* files and limits.ctl.
  70.  
  71.   ■ RUR can make a specific logfile containing every calculation.
  72.  
  73.   ■ Sysop can specify a free amount of Kilobytes the user may
  74.     download before RUR takes action
  75.  
  76.   ■ Special RUR Door which lets your users exactly see how their ratio
  77.     is being calculated.
  78.  
  79.   ■ RUR can send messages to the user when his level is up or downgraded,
  80.     containing many different control codes.
  81.  
  82.   ■ And much more... 
  83.  
  84.  
  85. ╓─────────────────────────────────────────────────────────────────────────────╖
  86. ║ ░░░░░░░ Support ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
  87. ╙─────────────────────────────────────────────────────────────────────────────╜
  88.  
  89.  
  90.   I've choosen to make RUR support  only Kilobytes  instead  also Numbers of
  91.   files. I don't think it's a good idea to work with numbers of files.   For
  92.   example: If a user downloaded 10 files of 100 K, with a ratio of  1:10  he
  93.   can upload 1 file of 1 K in order to get his ratio okay.  So, because that
  94.   system doesn't work right, RUR will only count Kilobytes... 
  95.  
  96.   And, RUR works with levels not with flags...
  97.   Levels  are much  easier to use,   you can specify different kind of daily
  98.   download limits depending on levels, timelimits etc...
  99.  
  100.   For every  level you have ( called the 'good level' ) and  want to let RUR
  101.   take action on, you must make another level (called the 'bad level').
  102.   Every  time a users ratio is not  correct, it will be lowered to the  'bad
  103.   level'  by RUR.  Offcourse, the user will be upgraded by  RUR to the 'good
  104.   level' if his ratio is correct again.
  105.   
  106.   If you understand this, you can see why I made  RUR  follow the above con-   
  107.   cept. If you have 2 different levels for the same users group (e.g. 99 and
  108.   100)  it is so much easier to keep control of the limits.  You now can de-
  109.   lare in your limits.ctl file that people with level 99  are not allowed to
  110.   download (or just a tiny little bit).  You can  for example make a special
  111.   sec99.a* file (see the RA docs) in which you tell them why you are using a
  112.   ratiosystem... Well, to make a long story short, a ratiosystem with levels
  113.   is much easier for everyone instead of a ratiosystem with flags.
  114.  
  115.   RUR is specially written for  RemoteAccess,  it will not work on  Quickbbs 
  116.   systems, because it uses specific RA control files. 
  117.  
  118. ╓─────────────────────────────────────────────────────────────────────────────╖
  119. ║ ░░░░░░░ Installing RUR ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
  120. ╙─────────────────────────────────────────────────────────────────────────────╜
  121.  
  122.  
  123.   RUR are three programs:
  124.   
  125.   RUR_PRG.EXE, which you have to run on a daily bases (in your nightly event
  126.                for example)  which globally checks all users and up or down-
  127.                grade their level.
  128.   RUR_DOOR.EXE is the RemoteAccess Door,  which users can use when they have
  129.                uploaded enough,  and they don't want to wait  until the next
  130.                event to get their level raised back.
  131.   RUR_FD.EXE   which comes in handy if you run Filedoor on your bbs. See the
  132.                special RUR_FD.DOC for more details.
  133.  
  134.  
  135.   You have to make a control file for both programs in order to run correct-
  136.   ly. Both programs use the SAME control file, called RUR.CTL.
  137.  
  138.   The format of the RUR.CTL file is very simple:
  139.  
  140.     First line: 
  141.                   Free download in kilobytes.
  142.     Second line:
  143.                   Example Ratio for RUR_DOOR
  144.     Third (and following) lines:
  145.                   <low security> <normal security> <ratio> [msgfile]
  146.   
  147.   On the first line  you must supply  a number of Kilobytes  which new users
  148.   can  download for free,  before any  ratio checking is done. If you do not
  149.   want to give free downloads in the beginning, set this field to 1.
  150.  
  151.   The second line will only be used in RUR_DOOR,  e.g. it will be used as an  
  152.   example for users  for who you don't setup a ratio  ( special friends, co-
  153.   sysop) but who accidently enter the door.     Even if your special friends
  154.   ratio with this number isn't correct, RUR will not lower him.
  155.  
  156.   The third (and optionally following lines) is the important thing. On this
  157.   line you supply the level who WILL be effected by RUR.  For example,  your
  158.   level for normal users is 100.   You must now make a special level for RUR
  159.   to use when RUR downgrades a user. (for example level 99).
  160.   
  161.   The third line could look like this:
  162.  
  163.   99 100 5 
  164.   │   │  │
  165.   │   │  └ The 5 means ratio 1:5.  Users must upload 100 K for every 500 K 
  166.   │   │    they downloaded. (minus the number of free Kilobytes you supply 
  167.   │   │    on line 2).
  168.   │   └─── The 100 stands for level 100. If a user has a korrekt ratio, it 
  169.   │        has this level.
  170.   └─────── The 99 stands for level 99.  If a level 100 user doesn't have a
  171.            a correct ratio, it will be downgraded to level 99 by RUR.
  172.       
  173.   If you have another group of users you can supply a fourth line, which has
  174.   the same format as line 3 (and on, and on, you can supply up to 20 lines).
  175.   
  176.   Every level you  don't  mention in these lines will NOT be effected by RUR
  177.   and will be left alone even if their ratio isn't correct.
  178.  
  179.   As a - fourth - parameter  you can use a  name for a file which contains a
  180.   message text which RUR must  used in conjuction with the /M parameter. You
  181.   must specify the name WITHOUT  extension. The extension of the filename is
  182.   hardcoded into  '.DOW'  for messages  send to the bad level and  '.UP' for 
  183.   messages send to the good level.
  184.  
  185.   RUR_PRG and RUR_DOOR will look for the RUR.CTL file in the current dir, if
  186.   it can't find it, it will search through your enviroment for the RA=<path>
  187.   string  ( I believe every RA sysop has  this set, so that will no problem) 
  188.   and will look in that dir.
  189.   If you have the  RA=<path>  set in your  enviroment, you can start RUR_PRG
  190.   and RUR_DOOR from every directory you wish...
  191.  
  192.  
  193. ╓─────────────────────────────────────────────────────────────────────────────╖
  194. ║ ░░░░░░░ The RUR Door  ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
  195. ╙─────────────────────────────────────────────────────────────────────────────╜
  196.  
  197.  
  198.   RUR_DOOR is a complete  DOOR for RemoteAccess. It doesn't need parameters,
  199.   and it's easy to install. Just make a menutype 7 with in the optional data
  200.   field "RUR_DOOR.EXE" ( without the quotes offcourse) and that's all !
  201.  
  202.   RUR_DOOR has complete fossil support and  smart carrier detect routines so
  203.   you don't need a watchdog program or any other thing.
  204.   RUR_DOOR  has also  DesqView support, and has most of the RA function keys
  205.   build in!
  206.  
  207.   As long as  RUR_DOOR  can find the Dorinfo1.def and  Exitinfo.bbs files in
  208.   the current dir, and the  RUR.CTL  file in your RA system directory every-
  209.   thing works fine. In fact, you can try it out yourself, and  logon locally
  210.   on your bbs and enter the door...
  211.  
  212.   RUR_DOOR.EXE will only upgrade a users level when his ratio is korrekt AND
  213.   his level is defined in  RUR.CTL. Otherwise,  it only calculates a default
  214.   ratio, and will show it to the user.
  215.  
  216.   RUR_DOOR cannot be used stand-alone. You have to run  RUR_PRG  every night
  217.   to downgrade users, otherwise the door is completely needless.
  218.  
  219.   If you don't like the default colors RUR_DOOR has built in (only with ANSI
  220.   enable) make a RUR_DOOR.CFG file with four lines: Define on every line the
  221.   ANSI escape codes you'ld like, and RUR_DOOR will use these colors.
  222.   I have enclosed a sample  RUR_DOOR.CFG  file, but if you  like the default
  223.   colors, just delete this file.
  224.  
  225.  
  226. ╓─────────────────────────────────────────────────────────────────────────────╖
  227. ║ ░░░░░░░ Options and behavior ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
  228. ╙─────────────────────────────────────────────────────────────────────────────╜
  229.  
  230.  
  231.   RUR_PRG can use three parameters:
  232.  
  233. * RUR_PRG /M5    will instruct RUR_PRG to send a message in board 5 to every
  234.   user who will be down or upgraded during  this run.  The  message will in-
  235.   clude the calculation made by RUR_PRG.
  236.   Boardnumbers 1 to 199 are valid.
  237.  
  238.   If you want to define your own message text, you have to create two files.
  239.   As default they are called RUR_PRG.UP and  RUR_PRG.DOW but you can declare
  240.   other names  in  RUR.CTL  on the  third  and  following  lines  as  fourth
  241.   parameter. Any legal dos name (and path) will do...
  242.  
  243.   In these files you can explain why the user is up or downgraded.   You can
  244.   use  several control codes starting with a '@' on the place where  RUR has
  245.   to supply data. (see the control code section)
  246.   RUR_PRG  has built in default message text, so if you don't want to change
  247.   the  text  in the  messages, you  can delete  the example  RUR_PRG.DOW and
  248.   RUR_PRG.UP which came in the archive.
  249.  
  250.   RUR does not check in which area it have to post the messages, so you bet-
  251.   ter make sure  it's a local board. (Even better is to make a board comple-
  252.   tely for RUR, so you can delete the recieved messages in your event)
  253.  
  254.   
  255. * RUR_PRG /L   will instruct RUR_PRG to make a logfile, with all the changes
  256.   made during this run.
  257.   Everytime RUR starts, it will overwrite this logfile (if exist), so if you
  258.   want to keep it longer than 1 day, copy it to another dir or rename it.
  259.  
  260. * RUR_PRG /S will turn off all screen writes. On some slow systems with  CGA
  261.   cards, RUR would have run very slow. With this parameter supplied RUR will
  262.   display almost nothing, and will speed up to 200% (on some systems).
  263.  
  264.  
  265.   You can use the parameters  with each other, no particular order required.
  266.   Up and lowcase are also treaded alike.
  267.  
  268.  
  269. ╓─────────────────────────────────────────────────────────────────────────────╖
  270. ║ ░░░░░░░ Control Codes  ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
  271. ╙─────────────────────────────────────────────────────────────────────────────╜
  272.  
  273.  
  274.   The messages who RUR sends are totally configurable using control codes in 
  275.   the message  text.  These  control codes will be replaced by  RUR into the
  276.   correct values.
  277.  
  278.   The following control codes are valid:
  279.  
  280.      @A    Users full name
  281.      @B    Users first name
  282.      @C    Users last name
  283.      @D    Location
  284.      @E    Last time user was on
  285.      @F    Last date user was on
  286.      @G    Number of Calls
  287.      @H    Amount of files uploaded
  288.      @I    Amount of kilobytes uploaded
  289.      @J    Amount of files downloaded
  290.      @K    Amount of kilobytes downloaded
  291.      @L    Amount of kilobytes needed before level upgrade /
  292.            Amount of kilobytes still available 
  293.      @M    Free K
  294.      @N    Differents between free K and K downloaded
  295.      @O    The effected Ratio (1:x)
  296.      @P    Amout uploaded * ratio (in kilobytes)
  297.      @Q    Amout the user has to upload in order to get upgraded 
  298.            (Use this only in rur_prg.dow, this number is actually @L div @O)
  299.      @R    User's old level
  300.      @S    User's new level
  301.  
  302.  
  303. ╓─────────────────────────────────────────────────────────────────────────────╖
  304. ║ ░░░░░░░ The last words : ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
  305. ╙─────────────────────────────────────────────────────────────────────────────╜
  306.  
  307.  
  308.   RUR is Cardware; Just send me a postcard of your city if you like the 
  309.   program:
  310.  
  311.                           Ron Huiskes / Interface
  312.                                P.o. Box 528
  313.                             2280 AM  Rijswijk
  314.                                  Holland.
  315.  
  316.   If you have any comments on RUR, or you would like to contact me through
  317.   Fidonet, call: +31-70-3361380 / 3361381 or use [2:281/506.0]
  318.  
  319.  
  320.   Disclaimer: The supplied program and all it's .Cfg file will only take up
  321.               space on your harddisk, it  is suplied as-is. If it breaks in
  322.               two, you own both halves...  It was fully tested on my system
  323.               (running three lines on a  novell  network)  and nothing went
  324.               wrong. But, I suggest that  you back-up  your  users.bbs file 
  325.               just in case every night before you run RUR.
  326.  
  327. <EOF>
  328.